﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Cheka.WinForm.Sample.Course
{
    public partial class CourseDlg : Form
    {
        // ************************************************ //
        #region "member variables"

        private Course m_course;

        #endregion

        public CourseDlg()
        {
            InitializeComponent();
            m_course = new Course();
        }

        public Course Course { get { return m_course; } }

        private void btnOK_Click(object sender, EventArgs e)
        {
            m_course.Semester = tbxSemester.Text;
            m_course.Name = tbxName.Text;
            m_course.Id = int.Parse(tbxId.Text);
            m_course.Department = tbxDepartment.Text;
            m_course.Location = tbxLocation.Text;
            m_course.Time = tbxTime.Text;
        }
    }
}
